# 用partial_link_text定位元素
from selenium import webdriver
import time
driver = webdriver.Chrome()
driver.get("https://www.baidu.com/")
driver.find_element_by_partial_link_text("123").click()
time.sleep(3)
driver.quit()